﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace MDSAdministration
{
    class HatchBrush
    {
        private static LinearGradientBrush _PinkGray;
        public static Brush PinkGrey
        {
            get
            {
                if (_PinkGray == null)
                {
                    _PinkGray = new LinearGradientBrush();
                    _PinkGray.MappingMode = BrushMappingMode.Absolute;
                    _PinkGray.SpreadMethod = GradientSpreadMethod.Repeat;
                    _PinkGray.StartPoint = new Point(0, 0);
                    _PinkGray.EndPoint = new Point(3.0, 3.0);
                    GradientStop gs = new GradientStop();
                    gs.Color = Colors.DarkSlateGray;
                    _PinkGray.GradientStops.Add(gs);
                    gs = new GradientStop();
                    gs.Color = Colors.DarkSlateGray;
                    gs.Offset = 0.125;
                    _PinkGray.GradientStops.Add(gs);
                    gs = new GradientStop();
                    gs.Color = Color.FromArgb(70, 220, 120, 218);
                    gs.Offset = 0.125;
                    _PinkGray.GradientStops.Add(gs);

                }
                return _PinkGray;
            }
        }

        private static LinearGradientBrush _LightSkyBlueGrey;
        public static Brush LightSkyBlueGrey
        {
            get
            {
                if (_LightSkyBlueGrey == null)
                {
                    _LightSkyBlueGrey = new LinearGradientBrush();
                    _LightSkyBlueGrey.MappingMode = BrushMappingMode.Absolute;
                    _LightSkyBlueGrey.SpreadMethod = GradientSpreadMethod.Repeat;
                    _LightSkyBlueGrey.StartPoint = new Point(0, 0);
                    _LightSkyBlueGrey.EndPoint = new Point(3.0, 3.0);
                    GradientStop gs = new GradientStop();
                    gs.Color = Colors.Gray;
                    _LightSkyBlueGrey.GradientStops.Add(gs);
                    gs = new GradientStop();
                    gs.Color = Colors.Gray;
                    gs.Offset = 0.125;
                    _LightSkyBlueGrey.GradientStops.Add(gs);
                    gs = new GradientStop();
                    gs.Color = Color.FromArgb(50, 135, 206, 255);
                    gs.Offset = 0.125;
                    _LightSkyBlueGrey.GradientStops.Add(gs);

                }
                return _LightSkyBlueGrey;
            }
        }
    }
}
